import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import { resolve } from 'path'

export default defineConfig({
  plugins: [vue()],
  resolve: {
    alias: {
      '@': resolve(__dirname, 'src'),
      '@mo': resolve(__dirname, '../../packages')
    }
  },
  css: {
    preprocessorOptions: {
      scss: {
        // 可以在这里添加全局 SCSS 变量
      }
    },
    postcss: './postcss.config.js'
  },
  optimizeDeps: {
    include: ['tailwindcss', 'autoprefixer']
  }
}) 